package com.bw.gmall.realtime.app.zyjdwd;

import com.bw.gmall.realtime.utils.FlinkCDC;
import org.apache.flink.streaming.api.datastream.SingleOutputStreamOperator;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

public class aaa {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);
        SingleOutputStreamOperator<String> gmall = FlinkCDC.mysqlCDC(env, "gmall", "*");
//        DataStream<String> mysql = MysqlUtil.cdcMysql(env, "gmall", "*");
        gmall.print();
        env.execute();
//        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
//        env.setParallelism(1);
//
//        DataStream<String> ds = MysqlUtil.cdcMysql(env, "gmall1", "*");
//        ds.print();
////        ds.addSink(MyKafkaUtil.getFlinkKafkaProducer("ods_base_topic"));
//
//        env.execute();
    }
}
